<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
 <%@include file="/WEB-INF/page/common/taglib.jsp" %>
 
 <html lang="zh-CN">
  
  <head>
  
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title></title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
	<link href="/css/member/iconfont.css" rel="stylesheet">
	<link href="/css/member/swiper.min.css" rel="stylesheet">
    <link href="/css/member/style.css" rel="stylesheet">
	<link href="/css/member/user.css" rel="stylesheet">
	
	<script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
	<script src="/js/swiper.min.js"></script>
	<!--用户-->
	<script src="/js/user.js"></script>
	
  </head>
  <body>
    
    <jsp:include page="/WEB-INF/page/member/head.jsp"/>
    
	<nav class="navbar navbar-default">
	  <div class="container">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
		  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		  </button>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		  <ul class="nav navbar-nav">
			<li class="active"><a href="#">我的账户</a></li>
			<li><a href="#">商城首页</a></li>
			<li><a href="#">帮助中心</a></li>
		  </ul>
		  <ul class="nav navbar-nav navbar-right">
			<li><a href="#" class="cartBtn"><i class="icon iconfont icon-chaoshi"></i><span class="cartNums">2</span>去结算</a></li>
		  </ul>
		</div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</nav>
	<div class="container">
		<div class="bread">
			当前位置：<a href="">首页</a> &gt; <a href="UserDefault.html">会员中心</a> &gt; 我的收货地址
		</div>
		<div class="user-main row clearfix">
			<div id="uMenu" class="col-md-2 col-sm-3">
				<div class="userNav">
					<dl>
						<dt><i></i>我的交易记录</dt>
						<dd><a href="/member/userOrders">订单管理</a></dd>
						<dd><a href="/member/userRefundApply">退款申请单</a></dd>
						<dd><a href="/member/userReturnsApply">退货申请单</a></dd>
						<dd><a href="/member/userReplaceApply">换货申请单</a></dd>
						<dd><a href="/member/userPoints">我的积分</a></dd>
						<dd><a href="/member/myCoupons">我的优惠券</a></dd>
					</dl>
					<dl>
						<dt>商品收藏与评论</dt>
						<dd><a href="/member/favorites">收藏夹</a></dd>
						<dd><a href="/member/userConsultations">咨询/回复</a></dd>
						<dd><a href="/member/userProductReviews">我参与的评论</a></dd>
						<dd><a href="/member/userBatchBuy">商品批量购买</a></dd>
					</dl>
					<dl>
						<dt>预付款账户</dt>
						<dd><a href="/member/myAccountSummary">预付款账户</a></dd>
						<dd><a href="/member/rechargeRequest">预付款充值</a></dd>
						<dd><a href="/member/myAccount">账户安全</a></dd>
					</dl>
					<dl>
						<dt>个人设置</dt>
						<dd><a href="/member/userProfile">个人信息</a></dd>
						<dd><a href="/member/updatePassword">修改密码</a></dd>
						<dd><a href="/member/userShippingAddresses">我的收货地址</a></dd>
					</dl>
					<dl>
						<dt>站内消息</dt>
						<dd><a href="/member/userReceivedMessages">收件箱(<span class="style-red">0</span>)</a></dd>
						<dd><a href="/member/userSendedMessages">发件箱</a></dd>
						<dd><a href="/member/userSendMessage">给管理员发消息</a></dd>
					</dl>
				</div>
				<a href="" class="logoutBtn">安全退出</a>
			</div>
			<div class="col-md-10 col-sm-9 userContent">
				<div class="uPassword">
					<h3 class="utitle">我的收货地址</h3>
					<div class="uMsgList uaddressBox">
						<div class="insertAddress">
							<form class="form-horizontal" method="post" action="/member/userShippingAddresses/save">
								<div class="form-group">
									<label class="col-sm-2 control-label"><b class="style-red">*</b>&nbsp;收货人:</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control" name="recipients">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><b class="style-red">*</b>&nbsp;所在区域:</label>
									<div class="col-sm-10 areabox">
										<select name="province" class="form-control">
											<option value="0">请选择省</option>
										</select>
										<select name="city" class="form-control">
											<option  value="0">市</option>
										</select>
										<select name="county" class="form-control">
											<option  value="0">区/县</option>
										</select>
										<select name="street" class="form-control">
											<option  value="0">街道</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><b class="style-red">*</b>&nbsp;详细地址:</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control" name="address">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮政编码:</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control" name="postalcode">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">电话号码:</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control" name="tel">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><b class="style-red">*</b>&nbsp;手机号码:</label>
									<div class="col-sm-10">
									  <input type="text" class="form-control" name="mobile">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"><b class="style-red">*</b>&nbsp;设为默认:</label>
									<div class="col-sm-10">
										<input type="radio" name="isdefault" id="yes"><label for="yes">是</label>
										<input type="radio" name="isdefault" id="no"><label for="no">否</label>
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-offset-2 col-sm-10">
									  <button type="submit" class="btn btn-warning">添加</button>
									  <button type="reset" class="btn btn-default ml20">重置</button>
									</div>
								</div>
							</form>
						</div>
						<p class="style-red">最多只能添加 5 个收货地址</p>
						<div class="selAddress">
							<table class="table">
								<tr>
									<th>收货人</th>
									<th>邮政编码</th>
									<th>街道地址</th>
									<th>电话号码</th>
									<th>手机号码</th>
									<th>操作</th>
								</tr>
								<c:forEach items="${list}" var="deliverinfo">
								<tr>
									<td>${deliverinfo.recipients}</td>
									<td>${deliverinfo.postalcode}</td>
									<td>${deliverinfo.province} ${deliverinfo.city} ${deliverinfo.county}${deliverinfo.street}</td>
									<td>${deliverinfo.tel}</td>
									<td>${deliverinfo.mobile}</td>
									<td>
										<a href="">编辑</a>
										<a href="/member/userShippingAddresses/del?id=${deliverinfo.id}">删除</a>
									</td>
								</tr>
								</c:forEach>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

    
  </body>
</html>